package com.ruihui.activity.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.Version;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value="Acgoods对象",description="活动列表")
public class AcgoodsDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	/**
	 * 商品id
	 */
	@ApiModelProperty(value="商品id或者分类id")
	private Long goodsid;
	/**
	 * 活动id
	 */
	@ApiModelProperty(value="活动id")
	private Long acid;
	  /**
     * 商品分类id
     */
	@ApiModelProperty(value="商品分类id")
    private Long catid; 
	/**
	 * 活动库存
	 */
	@ApiModelProperty(value="活动库存")
	private Integer acnum;
	/**
	 * 限购数量
	 */
	@ApiModelProperty(value="限购数量")
	private Integer limitbuy;
	/**
	 * 活动价格
	 */
	@ApiModelProperty(value="活动价格或者折扣")
	private BigDecimal acprice;
	/**
	 * 分类名称
	 */
	@ApiModelProperty(value="分类名称")
	private String gname;
	/**
	 * 锁
	 */
	@Version
	private Long version;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value="开始时间")
	private BigDecimal starttime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty(value="结束时间")
	private BigDecimal endtime;
	/**
	 * 类型 
	 */
	@ApiModelProperty(value="类型 1优惠券金额 2优惠券折扣 3秒杀活动4赠品活动5满减活动6免单活动7团购活动")
	private Integer type;
	/**
	 * 状态，1开启2关闭
	 */
	@ApiModelProperty(value="状态，1开启2关闭")
	private Integer state;
	/**
	 * 排序
	 */
	@ApiModelProperty(value="排序")
	private Integer sorting;
	/**
	 * 次数
	 */
	@ApiModelProperty(value="次数")
	private Integer chanceNum;
	/**
	 * 逻辑价格
	 */
	@ApiModelProperty(value="逻辑价格")
	private BigDecimal acrdprice;
	/**
	 * 编号
	 */
	@ApiModelProperty(value="编号")
	private String acno;
	/**
	 * 描述
	 */
	@ApiModelProperty(value="描述")
	private String contents;
	/**
	 * 逻辑删除1显示，0删除
	 */
	private Integer del;

	public BigDecimal getAcrdprice() {
		return acrdprice;
	}

	public void setAcrdprice(BigDecimal acrdprice) {
		this.acrdprice = acrdprice;
	}

	public String getAcno() {
		return acno;
	}

	public void setAcno(String acno) {
		this.acno = acno;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(Long goodsid) {
		this.goodsid = goodsid;
	}

	public Long getAcid() {
		return acid;
	}

	public void setAcid(Long acid) {
		this.acid = acid;
	}

	public Integer getAcnum() {
		return acnum;
	}

	public void setAcnum(Integer acnum) {
		this.acnum = acnum;
	}

	public Integer getLimitbuy() {
		return limitbuy;
	}

	public void setLimitbuy(Integer limitbuy) {
		this.limitbuy = limitbuy;
	}

	public BigDecimal getAcprice() {
		return acprice;
	}

	public void setAcprice(BigDecimal acprice) {
		this.acprice = acprice;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public BigDecimal getStarttime() {
		return starttime;
	}

	public void setStarttime(BigDecimal starttime) {
		this.starttime = starttime;
	}

	public BigDecimal getEndtime() {
		return endtime;
	}

	public void setEndtime(BigDecimal endtime) {
		this.endtime = endtime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	public Integer getChanceNum() {
		return chanceNum;
	}

	public void setChanceNum(Integer chanceNum) {
		this.chanceNum = chanceNum;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}
	public Long getCatid() {
		return catid;
	}

	public void setCatid(Long catid) {
		this.catid = catid;
	}
	public String toString() {
		return "AcgoodsDto [id=" + id + ", goodsid=" + goodsid + ", acid=" + acid + ", catid=" + catid + ", acnum="
				+ acnum + ", limitbuy=" + limitbuy + ", acprice=" + acprice + ", gname=" + gname + ", version="
				+ version + ", starttime=" + starttime + ", endtime=" + endtime + ", type=" + type + ", state=" + state
				+ ", sorting=" + sorting + ", chanceNum=" + chanceNum + ", acrdprice=" + acrdprice + ", acno=" + acno
				+ ", contents=" + contents + ", del=" + del + "]";
	}

}